/**
 * 
 */
package com.ydy.ienum;

import com.ydy.ienum.base.IErrorEnum;

/**
 * @author xuzhaojie
 *
 *         2018年11月12日 上午9:41:48
 */
public enum EnumOrder implements IErrorEnum {
	ORDER_DETAIL_EMPTY(6000, "订单条目不能为空"),
	ORDER_NOT_FOUND(6001, "订单不存在"),
	ORDER_STATUS_NOT_FOUND(6002, "订单状态不存在"),
	ORDER_STATUS_HAD_PAY(6003, "订单已付款"),
	ORDER_STATUS_ERROR(6004, "订单流程有误"),
	UNKNOW_ORDER_STATUS(6005, "未知的订单状态"),
	ORDER_STATUS_NOT_COMMIT(6006, "订单不是未支付状态"),
	ORDER_STATUS_NOT_PAY(6006, "订单不是支付状态"),
	ORDER_NOT_FIT_USER(6007, "订单不属于该用户"),
	ORDER_STATUS_NOT_FIT_PAY(6008, "订单状态为已付款或者未预约才能预定"),
	ORDER_SHOP_NOT_FIT(6009, "订单不属于该商户"),
	ORDER_MUST_ONE_SHOP(6010, "订单只能包含一个商店的商品"),
	FEE_NOT_FULL(6011, "支付订单费用过少"),
	REFUND_EXPIRE(6012, "订单预约时间距离小于约定退款时间,不可退款"),
	ROLE_REFUND_NOT_FOUND(6013, "未知操作退款的角色");

	private Integer code;
	private String msg;

	private EnumOrder(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

}
